package com.acdc.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.acdc.mapper.Dlt698LogMapper;
import com.acdc.domain.Dlt698Log;
import com.acdc.service.IDlt698LogService;

/**
 * DLT698指令日志Service业务层处理
 * 
 * @author acdc
 * @date 2025-08-13
 */
@Service
public class Dlt698LogServiceImpl implements IDlt698LogService 
{
    @Autowired
    private Dlt698LogMapper dlt698LogMapper;

    /**
     * 查询DLT698指令日志
     * 
     * @param id DLT698指令日志主键
     * @return DLT698指令日志
     */
    @Override
    public Dlt698Log selectDlt698LogById(Long id)
    {
        return dlt698LogMapper.selectDlt698LogById(id);
    }

    /**
     * 查询DLT698指令日志列表
     * 
     * @param dlt698Log DLT698指令日志
     * @return DLT698指令日志
     */
    @Override
    public List<Dlt698Log> selectDlt698LogList(Dlt698Log dlt698Log)
    {
        return dlt698LogMapper.selectDlt698LogList(dlt698Log);
    }

    /**
     * 新增DLT698指令日志
     * 
     * @param dlt698Log DLT698指令日志
     * @return 结果
     */
    @Override
    public int insertDlt698Log(Dlt698Log dlt698Log)
    {
        dlt698Log.setCreateTime(DateUtils.getNowDate());
        return dlt698LogMapper.insertDlt698Log(dlt698Log);
    }

    /**
     * 修改DLT698指令日志
     * 
     * @param dlt698Log DLT698指令日志
     * @return 结果
     */
    @Override
    public int updateDlt698Log(Dlt698Log dlt698Log)
    {
        return dlt698LogMapper.updateDlt698Log(dlt698Log);
    }

    /**
     * 批量删除DLT698指令日志
     * 
     * @param ids 需要删除的DLT698指令日志主键
     * @return 结果
     */
    @Override
    public int deleteDlt698LogByIds(Long[] ids)
    {
        return dlt698LogMapper.deleteDlt698LogByIds(ids);
    }

    /**
     * 删除DLT698指令日志信息
     * 
     * @param id DLT698指令日志主键
     * @return 结果
     */
    @Override
    public int deleteDlt698LogById(Long id)
    {
        return dlt698LogMapper.deleteDlt698LogById(id);
    }
}
